
Gimme.query = (function()
{
	#include(.\src\fetch.js)
	return fetch;
})();
/*
	ARGS:
	selector: a css selector string
	root: a DOM element to act as the root node when a search begins
	
	RETURNS:
	an /TRUE/ Javascript array of DOM Elements
	
Gimme.query = function(selector, root)
{
	// Any CSS Querying Engine that can adhere to this interface
	// can be plugged in and used with Gimme
}

// Example of "dumbed-down," super-minimal CSS Querying Engine
// that be be plugged into Gimme.  It supports only #id and tagName selectors
Gimme.query = function(selector, root)
{
	// ignore root for this "minimal" example
	if (selector.charAt(0) === '#')
	{
		return [ document.getElementById(selector.replace(/^#/, '')) ];
	}
	else
	{
		var elems = document.getElementsByTagName(selector);
		var collection = [];
		var i = elems.length;
		while(i--)
		{
			collection.unshift(elems[i]);
		}
		return collection;
	}
}
*/